/*
 * @Author: WHAlex
 * @Date: 2025-01-20 09:29:46
 *
 * Copyright (c) 2025 by atguigu, All Rights Reserved.
 */
#ifndef __APP_WS_H__
#define __APP_WS_H__

#include <stdio.h>
#include "esp_event.h"
#include "esp_crt_bundle.h"

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"

#include "esp_log.h"
#include "Com_Debug.h"
#include "esp_websocket_client.h"
#include "Inf_ES8311.h"
#include "Inf_OV2640.h"
#include "freertos/ringbuf.h"

#define DIR_ESP2CLIENT 0
#define DIR_CLIENT2ESP 1

void App_WS_Init(void);

void App_WS_Start_Sound_Client(uint8_t dir);

void App_WS_Stop_Sound_Client(uint8_t dir);

void App_WS_Start_Video_Client(void);

void App_WS_Stop_Video_Client(void);

void App_WS_Send_bin(esp_websocket_client_handle_t client, char *data, size_t len);

#endif
